//
//  My_PageView.m
//  Bullet
//
//  Created by admin on 2019/8/27.
//  Copyright © 2019 . All rights reserved.
//

#import "My_PageView.h"

@implementation My_PageView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        self.closeBgBtn = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, KScreen_W, frame.size.height)];
        self.closeBgBtn.backgroundColor = viewback_black;
        self.closeBgBtn.alpha = 0.4;
        [self addSubview:self.closeBgBtn];
        
        self.pageShowView = [[UIView alloc]initWithFrame:CGRectMake(0, frame.size.height-250, KScreen_W, 250)];
        self.pageShowView.backgroundColor = COLOR(130, 130, 130);
        [self addSubview:self.pageShowView];
        
        self.closeBtn = [[UIButton alloc]initWithFrame:CGRectMake(10, 0, 100, 50)];
        [self.closeBtn setTitle:NSLocalizedString(@"取消", nil) forState:UIControlStateNormal];
        [self.closeBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        self.closeBtn.titleLabel.font = Font(15);
        [self.pageShowView addSubview:self.closeBtn];
        
        self.okBtn = [[UIButton alloc]initWithFrame:CGRectMake(KScreen_W-100, 0, 100, 50)];
        [self.okBtn setTitle:NSLocalizedString(@"确定", nil) forState:UIControlStateNormal];
        [self.okBtn setTitleColor:[UIColor whiteColor] forState:UIControlStateNormal];
        self.okBtn.titleLabel.font = Font(15);
        [self.pageShowView addSubview:self.okBtn];
        
        self.PickerView =[[UIPickerView alloc]initWithFrame:CGRectMake(0, 50, KScreen_W, 200)];
        self.PickerView.backgroundColor = [UIColor whiteColor];
        [self.pageShowView addSubview:self.PickerView];
    UIButton * textShowButtonTo1 = [[UIButton alloc]initWithFrame:CGRectMake(0, 0, 0, 0)];
        NSString * textShowButtonTitleTo1 = @"测试功能";
        [textShowButtonTo1 setTitle:textShowButtonTitleTo1 forState:UIControlStateNormal];
        NSInteger textShowArcTo1 = arc4random_uniform(22);
        NSLog(@"随机数：%ld", (long)textShowArcTo1);
    }
    return self;
}

@end
